package com.x.mygulimall5.common.exception;

import lombok.Data;

@Data
public class MyException extends RuntimeException{
    private Integer code ;

    public MyException(String message, Integer code) {
        super(message);
        this.code = code;
    }

    /*public MyException(ResultCode resultCode) {
        super(resultCode.getMessage());
        this.code = resultCode.getCode();
    }*/
}
